import Vue from 'vue'
import App from './App.vue'
//导入路由
import router from './router'
//导入Vuex
import store from './store'
//导入 Elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//导入axios
import setAxios from './network/index.js'
setAxios()
import axios from 'axios'
axios.defaults.baseURL = '/api'
Vue.prototype.$axios = axios
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
    //导入滚动字体
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
    // 引入基础样式
import '@/assets/scss/reset.less'
import '@/assets/font/iconfont.css'
// 引入公共样式
import '@/assets/scss/common.less'
// 引入loadding加载动画的样式
import '@/assets/scss/loadding.less'
// 引入移动端样式
import '@/assets/scss/mobile.less'
// 引入文本编辑器
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)
import 'wowjs/css/libs/animate.css'
// 引入图片懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload)

import '@/assets/js/top.js'
//导入高德api
import AMap from 'vue-amap'

Vue.use(AMap)
AMap.initAMapApiLoader({
    key: '78d9fe7e7c5817a03e0a80b562995fdb', // 你的key
    plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.Geolocation', 'AMap.Geocoder', 'AMap.AMapManager', 'AMap.Marker'], //应用功能项
    v: '1.4.4', //版本
    uiVersion: '1.0' //ui版本
})
Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')